package com.bootlever.framework.core.properties;

import com.bootlever.framework.core.properties.basic.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("bootLeverBase")
@ConfigurationProperties(prefix = "bootlever.framework.basic")
public class BasicProperties {

    private FastJsonParser jsonParser = new FastJsonParser();
    private MailSender mail = new MailSender();
    private Cors cors = new Cors();

    public Cors getCors() {
        return cors;
    }

    public void setCors(Cors cors) {
        this.cors = cors;
    }

    public FastJsonParser getJsonParser() {
        return jsonParser;
    }

    public void setJsonParser(FastJsonParser jsonParser) {
        this.jsonParser = jsonParser;
    }

    public MailSender getMail() {
        return mail;
    }

    public void setMail(MailSender mail) {
        this.mail = mail;
    }
}
